
import request from '@/utils/request'
// /tools/segmentRegionTree

// 湖库断面树形数据 /tools/lakeSegmentTree
export const lakeSegmentTree = (query) =>
    request({
        url: `/tools/lakeSegmentTree`,
        method: 'get',
        params: query
    })

//  /tools/segmentRegionTree  



// 手工监测获取最新日期 /tools/manualMonitordataLastTime
export const manualMonitordataLastTime = (query) =>
    request({
        url: `/tools/manualMonitordataLastTime`,
        method: 'get',
        params: query
    })

// 湖库断面树形数据 /tools/lakeSegmentTree
export const segmentRegionTree = (query) =>
    request({
        url: `/tools/segmentRegionTree`,
        method: 'get',
        params: query
    })

// /tools/lakeSegmentRegionTree 湖库断面区域树形数据
export const lakeSegmentRegionTree = (query) =>
    request({
        url: `/tools/lakeSegmentRegionTree`,
        method: 'get',
        params: query
    })

// 河流断面树形数据 /tools/segmentRiverTree

export const segmentRiverTree = (query) =>
    request({
        url: `/tools/segmentRiverTree`,
        method: 'get',
        params: query
    })

// 监测因子的接口 /tools/bussinessItemData
export const bussinessItemData = (query) =>
    request({
        url: `/tools/bussinessItemData`,
        method: 'get',
        params: query
    })

// 手工监测数据 /manualData/manualMonitorData
export const manualMonitorData = (data) =>
    request({
        url: `/manualData/manualMonitorData`,
        method: 'post',
        data
    })

// 自动监测数据 /nutritionization/nutritionalAutoIndexlist
export const nutritionalAutoIndexlist = (data) =>
    request({
        url: `/nutritionization/nutritionalAutoIndexlist`,
        method: 'post',
        data
    })
// 手动监测数据 /nutritionization/nutritionalManualIndexlist
export const nutritionalManualIndexlist = (data) =>
    request({
        url: `/nutritionization/nutritionalManualIndexlist`,
        method: 'post',
        data
    })

// /drink/autoQualityCalendar/historylist 自动质量日历历史数据
export const autoQualityCalendarHistorylist = (data) =>
    request({
        url: `/drink/autoQualityCalendar/historylist`,
        method: 'post',
        data
    })

// /drink/autoQualityCalendar/newlist 自动质量日历最新数据
export const autoQualityCalendarNewlist = (data) =>
    request({
        url: `/drink/autoQualityCalendar/newlist`,
        method: 'post',
        data
    })
